#ifndef __XFACTORY_HPP__
#define __XFACTORY_HPP__

class XFactory : public PWSocket
{
public:
	static bool addRemovedList(PWFile* file);
	static size_t runRemove(void);

public:
	bool open(const char* port);
	void onEvent(PWIOPoll* io, int fd, int events);

private:
	typedef std::set<PWFile*> removedlist_t;

private:
	static removedlist_t		s_rlist;
};

#endif//!__XFACTORY_HPP__

